﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace CinemaProject
{
    
    public class Schedule
    {
        
        private int id;
        private DateTime time;
        private Movie movie;
        private Room room;
        private decimal price;

        
        public Schedule()
        {
            id = 0;
            time = new DateTime();
            movie = null;
            room = null;
            price = 0;
        }
        public Schedule(int id)
        {
            this.id = id;
            this.time = new DateTime();
            this.movie = null;
            this.room = null;
            this.price = 0;
        }
        public Schedule(int id, DateTime time, Movie movie, Room room, decimal price)
        {
            this.id = id;
            this.time = time;
            this.movie = movie;
            this.room = room;
            this.price = price;
        }

        
        
        public int _id
        {
            get { return id; }
            set { id = value; }
        }
       
        public DateTime _time
        {
            get { return time; }
            set { time = value; }
        }
        
        public Movie _movie
        {
            get { return movie; }
            set { movie = value; }
        }
        
        public Room _room
        {
            get { return room; }
            set { room = value; }
        }
       
        public decimal _price
        {
            get { return price; }
            set { price = value; }
        }
    }
}
